package com.ljh.dao;

import com.ljh.bean.Role;

import java.util.List;

public interface RoleDao {
    public List<Role> getRoleList(int pageIndex, int pageSize);
    public int total();
    public int insert(Role role);
    public Role findById(int roleid);
    /**
     * 删除角色
     */
    public int deleteRole(int roleid);
    /**
     * 更新角色
     */
    public int updateRole(Role role);

    public List<Role> getList();

    public int updateState(int roleid,int rolestate);

    public Role getDetails(int roleid);
}
